<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Users extends Model
{
    //绑定表格
    protected $table='users';

    public function dataLogin($name)
    {
        return $this->where('name',$name)->first();
    }
}
